package com.cc.mapper;

import com.cc.entity.Dormitory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author yuton
* @description 针对表【dormitory】的数据库操作Mapper
* @createDate 2025-06-06 10:56:00
* @Entity com.cc.entity.Dormitory
*/

@Mapper
public interface DormitoryMapper {
    //查询所有宿舍楼信息
    public List<Dormitory> findAll();
    //根据 ID 查询宿舍楼详情
    public Dormitory findById(Integer id);
    //新增宿舍楼信息（包含楼名、楼层、容量等）
    int addDormitory(Dormitory dormitory);
    //修改宿舍楼信息
    int updateDormitory(Dormitory dormitory);
    //删除宿舍楼信息
    int deleteDormitory(Integer id);

}
